# -*- coding: utf-8 -*-
import tornado.web
from core.helpers import get_template_path
import settings

import os

class MainHandler(tornado.web.RequestHandler):
    def get(self):
        cont = {
            'title' : 'Blossom - Main Page'
        }
        self.render(get_template_path("core/index.html"), **cont)
        
class ConfigHandler(tornado.web.RequestHandler):
    def get(self):
        cont = {
            'title' : 'Blossom - Config'
        }
        config = open(settings.PROJECTS_CONFIG, "r").read()
        self.write(config)
